
<div ng-app="HomendApp" ng-controller="cicloController">
	<div class="md-padding" ng-cloak style="height:250px">
	    <div class="col-sm-9">
	    	
			<div class="card">
				<div class="card-header ch-alt">

                    <h2>Buscar Siclo <small>Lista si Ciclos</small></h2>

                    <!-- Text Y boton de buscar-->
                    <div class="lvh-search" data-ng-if="mactrl.listviewSearchStat" data-ng-click="mactrl.listviewSearchStat">
                        <input type="text" placeholder="Start typing..." class="lvhs-input">

                        <i class="lvh-search-close" data-ng-click="mactrl.listviewSearchStat = false">&times;</i>
                    </div>
                    <ul class="lv-actions actions">
                        <li>
                            <a href="" data-ng-click="mactrl.listviewSearchStat = true">
                                <i class="zmdi zmdi-search"></i>
                            </a>
                        </li>
                    </ul>

                </div>
				<div class="card-header ch-alt">
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<th>CICLO</th>
									<th>DESCRIPCION</th>
									<th>Editar</th>
									<th>Eliminar</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="d in np_list" class="info">
									<td>{{ d.abrev }}</td>
									<td>{{ d.desc }}</td>
									<td> <a href="" ng-click="sel(d)">Editar</a></td>
									<td> <a href="" ng-click="delete(d)">Eliminar</a></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<br>
		<div class="col-sm-6">
			<div class="card">
				<div class="card-header ch-alt">
                    <h2>Nuevo Ciclo <small>Registre el nuebo Ciclo</small></h2>
                </div>

					<md-content layout-padding class="autoScroll">
					    <md-input-container class="md-icon-float">
					      <!-- Use floating label instead of placeholder -->
					      <label>Ciclo</label>
					      <md-icon md-svg-src="img/icons/ic_person_24px.svg" class="name"></md-icon>
					      <input ng-model="ciclo.abrev" type="text">
					    </md-input-container>

					    <md-input-container md-no-float>
					      <md-icon md-svg-src="img/icons/ic_place_24px.svg"></md-icon>
					      <input ng-model="ciclo.desc" type="text" placeholder="Descripcion">
					    </md-input-container>
				  	</md-content>

					<md-button ng-click="save()" class="md-fab md-primary" aria-label="Use Android">
				        <md-icon md-svg-src="img/icons/android.svg"></md-icon>
				        {{ciclo.id}}
				    </md-button>
	    	</div>
    	</div>
	</div>
</div>



